<?php
/*
 * Squelette : fstdtweekly/archive.html
 * Date :      Mon, 13 Nov 2006 08:14:46 GMT
 * Compile :   Mon, 13 Nov 2006 08:15:27 GMT (0.05s)
 * Boucles :   _blog2, _announcements
 */ 
//
// <BOUCLE articles>
//
function BOUCLE_blog2html_fefab2baf833840aa6869955b48828fb(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
	$old_lang = $GLOBALS['spip_lang'];

	// REQUETE
	$result = spip_abstract_select(
		array("articles.date",
		"articles.id_article",
		"articles.lang"), # SELECT
		array("spip_articles AS articles"), # FROM
		array("(articles.date >= '" . addslashes('2006-07-01') . "')",
		"articles.statut='publie'"), # WHERE
		'', # GROUP
		array('articles.date' . ' DESC'), # ORDER
		'', # LIMIT
		'', # sous
		'', # HAVING
		'articles', # table
		'_blog2', # boucle
		''); # serveur
	$t0 = "";
	$SP++;

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

		$Cache['id_article'][$Pile[$SP]['id_article']] = 1; // invalideurs
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
					  ' .
(($t1 = unique(annee(vider_date($Pile[$SP]['date'])))) ?
			('<p><b>' . $t1 . '</b><br>') :
			('')) .
'
					  ' .
(($t1 = nom_mois(unique(affdate(vider_date($Pile[$SP]['date']),'Y-m')))) ?
			(('<a href="archive.php?archive=' .
affdate(vider_date($Pile[$SP]['date']),'Y-m') .
'">') . $t1 . '</a><br>') :
			('')) .
'
					');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE articles>
//
function BOUCLE_announcementshtml_fefab2baf833840aa6869955b48828fb(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
	$old_lang = $GLOBALS['spip_lang'];

	// REQUETE
	$result = spip_abstract_select(
		array("articles.id_article",
		"articles.titre",
		"articles.date",
		"articles.chapo",
		"articles.lang"), # SELECT
		array("spip_articles AS articles"), # FROM
		array("(articles.date >= '" . addslashes('2006-07-01') . "')",
		"(articles.date REGEXP '" . addslashes(interdire_scripts(entites_html(sinon($Pile[0]["archive"],'none')))) . "')",
		"articles.statut='publie'"), # WHERE
		'', # GROUP
		array(), # ORDER
		'0,10', # LIMIT
		'', # sous
		'', # HAVING
		'articles', # table
		'_announcements', # boucle
		''); # serveur
	$t0 = "";
	$SP++;

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

		$Cache['id_article'][$Pile[$SP]['id_article']] = 1; // invalideurs
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
				<a name="id' .
$Pile[$SP]['id_article'] .
'"></a><b><a href="article.php?id_article=' .
$Pile[$SP]['id_article'] .
'">' .
interdire_scripts(typo($Pile[$SP]['titre'])) .
'</a></b> - ' .
affdate(vider_date($Pile[$SP]['date']),'F d, Y') .
'<br>
				' .
interdire_scripts(traiter_raccourcis(nettoyer_chapo($Pile[$SP]['chapo']))) .
'
				
				<hr width="80%" color="#000000">

				<p>&nbsp;</p>
			');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}



//
// Fonction principale du squelette fstdtweekly/archive.html
//
function html_fefab2baf833840aa6869955b48828fb ($Cache, $Pile, $doublons=array(), $Numrows='', $SP=0) {
$t0 = ('	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html dir="' .
lang_dir(($Pile[0]['lang'] ? $Pile[0]['lang'] : $GLOBALS['spip_lang']),'ltr','rtl') .
'" lang="' .
htmlentities($Pile[0]['lang'] ? $Pile[0]['lang'] : $GLOBALS['spip_lang']) .
'">
	<head>
	<title>Archives - ' .
interdire_scripts(typo(lire_meta('nom_site'))) .
'</title>
	' .

'<?php
	$contexte_inclus = array();
	include(\'fstdtweekly/header.php\');
?'.'>' .
'
	
	<p>
	<div class="headertext">Archives</div>

	<table cellpadding="3" cellspacing="0" align="right" width="200" style="border : 1px solid #000000; background-color : ' .
'#EEEEEE' .
';">
			<tr>
				<td align="left" valign="top">
					<p>
					Archives
					</p>
					<hr>
					' .
BOUCLE_blog2html_fefab2baf833840aa6869955b48828fb($Cache, $Pile, $doublons, $Numrows, $SP) .
'
				</td>
			</tr>
		</table>

	
		' .
(($t1 = BOUCLE_announcementshtml_fefab2baf833840aa6869955b48828fb($Cache, $Pile, $doublons, $Numrows, $SP)) ?
			('
			' . $t1 . '
		') :
			('
			Select an archive:
		')) .
'

	' .

'<?php
	$contexte_inclus = array();
	include(\'fstdtweekly/footer.php\');
?'.'>');

	return array(
		'texte' => $t0,
		'squelette' => 'html_fefab2baf833840aa6869955b48828fb',
		'process_ins' => ((strpos($t0,'<'.'?')=== false) ? 'html' : 'php'),
		'invalideurs' => $Cache
	);
}

?>